import request from '@/utils/request'
export default {

  getVideoPage(current,limit) {
    return request({
      url: `/video/page/${current}/${limit}`,
      method: "get",
    });
  },
  updateVideo(video){
    return request({
      url: `/video/update`,
      method: "post",
      data:video
    });
  },
  getVideo(id){
    return request({
      url: `/video/get/${id}`,
      method: "get",
    });
  },
  deleteVideo(id){
    return request({
      url: `/video/delete/${id}`,
      method: "delete",
    });
  },
  getPlayAuth(id){
    return request({
      url: `/vod/video/getPlayAuth/${id}`,
      method: "get",
    });
  },
  addVideo(video){
    return request({
      url: `/video/add/`,
      method: "post",
      data:video
    });
  }
}
